package com.xiqi.microservice.zuul.filter;

import com.netflix.zuul.ZuulFilter;
import com.netflix.zuul.exception.ZuulException;
import com.xiqi.commons.redis.utils.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @program: apigateway
 * @description:
 * @author: Shine
 * @create: 2019-08-01 15:08
 */
public class MyZullFilter extends ZuulFilter {

    @Autowired
    private RedisUtils redisUtils;

    @Override
    public String filterType() {
        return "pre";
    }

    @Override
    public int filterOrder() {
        return 2;
    }

    @Override
    public boolean shouldFilter() {
        return false;
    }

    @Override
    public Object run() throws ZuulException {
        //todo:没有思路了。。。。
        return null;
    }
}
